package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;

@Getter
@Setter
@ToString
public class Salary {
    private Long id;

    private Long money;

    private Integer year;

    private Integer month;

    private Employee employee;

    private SystemDictionaryItem payout;



    //把部门转为json字符串
    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",id);
        map.put("money",money);
        map.put("year",year);
        map.put("month",month);
        map.put("employee",employee);
        map.put("payout",payout);

        return JSON.toJSONString(map);
    }


}